@import "../const.scss";

.dashboard {
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100%;
}

.dashboard-toolbar {
    background-color: $app-clr-1;
    padding: 1rem;
    width: 100%;
    flex-shrink: 0;
}

.dashboard-content {
    background-color: $app-clr-1;
    display: flex;
    width: 100%;
    height: 100%;
    flex-flow: column;
    flex-grow: 1;
    overflow: auto;
    padding: 0 1rem;
}

.tile-host {
    width: 100%;
    height: 100%;
    display: flex;
    flex-flow: wrap;
}

.tile {
    background-color: $app-clr-2;
    border: solid 1px $app-clr-3;
    border-radius: 2px;
    margin: 0 1rem 1rem 0;
    min-width: 26.3rem;
    height: fit-content;
    box-shadow: 0 0 0.5rem 0.1rem rgba(0, 0, 0, 0.2);

    .header {
        padding: $md-gutter;
        border-bottom: 1px solid $app-clr-4;
        color: $app-clr-yellow-1;
        font-weight: 500;

        a {
            text-decoration: none;
        }
    }

    .body {
        text-align: center;
        padding: $md-gutter;
        font-size: 0.8rem;
    }

    .tile-field {
        display: flex;
        justify-content: space-between;
        div:first-child {
            font-weight: 900;
        }
        margin-bottom: $sm-gutter;
    }
}

.waiting {
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.power-icons {
    display: flex;
    flex-wrap: wrap;
    a:hover {
        text-decoration: none;
    }
}

.power-icon {
    margin-top: 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background-color: transparent;
    border: 2px solid $app-clr-2;
    border-radius: $border-radius;
    padding: 0.8rem 0 0.5rem 0;
    width: 5rem;
    margin: 0 6px 6px 0;
    font-size: 0.8rem;
}

.power-icon:hover {
    cursor: pointer;
    background-color: $app-clr-blue-1;
    color: $app-white;
}

/* - DUPED -- */

.control {
    font-size: 0.8rem;
    padding: 0 $xs-gutter;
}
.control-OFF {
    color: $app-clr-4;
}
.control-DELAY {
    color: $app-clr-purple-1;
}
.control-ON {
    color: $app-clr-blue-1;
}
.control-TRYING {
    color: $app-clr-orange-1;
}
.control-SUCCESS {
    color: $app-clr-green-1;
}
.control-INIT {
    color: $app-clr-blue-5;
}
.control-CONNECTED {
    color: $app-clr-green-2;
}
.control-ERROR {
    color: $app-clr-red-1;
}
